import $axios from "@/utils/request.js";
export function login(data) {
    return $axios({
        url: '/chat-user/login',
        method: 'post',
        data
    });
}

export function register(data) {
    return $axios({
        url: '/chat-user/register',
        method: 'post',
        data
    });
}

export function logout() {
    return $axios({
        url: '/chat-user/logout',
        method: 'post'
    });
}